package com.euond.permission.entities;

import com.baomidou.mybatisplus.annotations.TableName;
import com.euond.common.core.entities.BaseEditEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 角色表
 */
@Getter
@Setter
@TableName(value = "sys_role")
public class Role extends BaseEditEntity {

    /**
     * 租赁公司ID
     */
    private Long companyId;

    /**
     * 编号
     */
    @Size(min = 1, max = 20)
    @NotNull
    private String code;

    /**
     * 角色名称
     */
    @Size(min = 4, max = 64)
    @NotNull
    private String name;

    /**
     * 状态
     */
    private Integer status;
}
